function getUser(){
	var url=location.href;
	var reg=/(.php\/)(.*)(.html)/g;
	reg.test(url);
	var user_str=RegExp.$2;
	var reg=/(user_)(.*)(id_)(.*)(type_)(.*)/g;
	reg.test(user_str);
	return RegExp.$2+" "+RegExp.$4+" "+RegExp.$6;
}
//加载
function go(info,set,type){
	document.body.style.background=set.background;
	if(typeof set.music=="undefined"){
		bgsound_player=new bgsound("music","",0,"../");
		var qing=new qingshu(info,"one",bgsound_player,"bgsound_player");
		if(type=="display"){
			qing.display();
		}else{
			qing.write();
		}
	}else{
		bgsound_player=new bgsound("music",set.music,0,"../");
		var qing=new qingshu(info,set.musicrepeat,bgsound_player,"bgsound_player");		
		if(type=="display"){
			qing.display();
		}else{
			qing.write();
		}
	}
	
}
window.onload=function(){
	var str=getUser();
	var arr=str.split(" ");
	get_ajax("../back_stage/love_stage.php",{info_init:true,user:arr[0],id:arr[1]},function(text){
		var json_all=JSON.parse(text);
		var info=json_all.info;
		var set=json_all.set.set;
		go(info,set,arr[2]);
	});
}